package com.sunchangpeng.microserviceuser.service;

import com.sunchangpeng.microserviceuser.manager.db.dao.UserMapper;
import com.sunchangpeng.microserviceuser.manager.db.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by sunchangpeng
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User findById(long id) {
        return userMapper.selectByPrimaryKey(id);
    }
}
